using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Globalization;

/*=====================================================================

  File:      About.cs
  Summary:   The "about" dialog for the Adventure Works Cycles HR
			 Resume application. 
  Date:	     March 22, 2004

---------------------------------------------------------------------

  This file is part of the Microsoft SQL Server Code Samples.
  Copyright (C) Microsoft Corporation.  All rights reserved.

This source code is intended only as a supplement to Microsoft
Development Tools and/or on-line documentation.  See these other
materials for detailed information regarding Microsoft code samples.

THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.

======================================================= */

namespace Microsoft.Samples.SqlServer
{
	/// <summary>
	/// Summary description for About.
	/// </summary>
	public class About : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Label aboutImageLabel;

		private System.Windows.Forms.Label aboutInformationLabel;

		private System.Windows.Forms.Label aboutNameLabel;
		private System.Windows.Forms.Button aboutOKButton;

		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.IContainer components = null;

		public About()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(About));
            this.aboutImageLabel = new System.Windows.Forms.Label();
            this.aboutInformationLabel = new System.Windows.Forms.Label();
            this.aboutNameLabel = new System.Windows.Forms.Label();
            this.aboutOKButton = new System.Windows.Forms.Button();
            this.SuspendLayout();
            // 
            // aboutImageLabel
            // 
            this.aboutImageLabel.Image = Microsoft.Samples.SqlServer.NonLocalizedResources.logo_jpg;
            resources.ApplyResources(this.aboutImageLabel, "aboutImageLabel");
            this.aboutImageLabel.Name = "aboutImageLabel";
            // 
            // aboutInformationLabel
            // 
            resources.ApplyResources(this.aboutInformationLabel, "aboutInformationLabel");
            this.aboutInformationLabel.Name = "aboutInformationLabel";
            // 
            // aboutNameLabel
            // 
            resources.ApplyResources(this.aboutNameLabel, "aboutNameLabel");
            this.aboutNameLabel.Name = "aboutNameLabel";
            // 
            // aboutOKButton
            // 
            resources.ApplyResources(this.aboutOKButton, "aboutOKButton");
            this.aboutOKButton.Name = "aboutOKButton";
            this.aboutOKButton.Click += new System.EventHandler(this.aboutOKButton_Click);
            // 
            // About
            // 
            this.AcceptButton = this.aboutOKButton;
            resources.ApplyResources(this, "$this");
            this.ControlBox = false;
            this.Controls.Add(this.aboutOKButton);
            this.Controls.Add(this.aboutNameLabel);
            this.Controls.Add(this.aboutInformationLabel);
            this.Controls.Add(this.aboutImageLabel);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "About";
            this.ResumeLayout(false);

		}
		#endregion

		private void aboutOKButton_Click(object sender, System.EventArgs e)
		{
			this.Close();
		}
	}
}
